<?php
namespace Home\Model;
use Think\Model;
class GoodsModel extends Model{
	function getGoodsList(){

        $res=M('goods')->where('id<=8')->limit(10)->select();
	return $res;
	}
	function getList(){
        $res=M("category")->where('parent_id=0')->select();

        return $res;
    }

}